package com.demo.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.gulimall.common.to.mq.StockLockedTo;
import com.demo.gulimall.ware.entity.WareSku;
import com.demo.gulimall.ware.vo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Chen Yuan
 */

@Service
public interface WareSkuService extends IService<WareSku> {


	List<SkuHasStockVo> getSkuHasStock(List<Long> skuIds);

	Boolean orderLockStock(SkuLockStockVo lockStockVo);

	Boolean handleReleaseLockedStock(StockLockedTo stockLockedTo);

	Boolean handleReleaseLockedStock(OrderVo orderVo);
}
